
<!--    AVATAR    -->
<!--{if $_G[uid] && ($space[uid] == $_G[uid])}-->
    <div class="bm bw0" >
        <div class="mi mar-pa-box">
            <div class="avatar mbn cl">
                <a href="home.php?mod=spacecp&ac=avatar" title="{lang memcp_avatar}" id="edit_avt"><span id="edit_avt_tar"><strong>{lang memcp_avatar}</strong></span><!--avatar($_G[uid],big)--><img width="180px" src="./passport/avatar.php?uid=$space[uid]&size=big"></a>
            </div>
            <p class="left_profile">
                <a href="home.php?mod=space&username=$space[username]" class="o xi2"><strong>{lang view_my_space}</strong></a>
                <!--{if $_G['group']['allowinvisible']}-->
                    <span id="loginstatus" class="login_status">
                        <a id="loginstatusid" href="member.php?mod=switchstatus" title="{lang login_switch_invisible_mode}" onclick="ajaxget(this.href, 'loginstatus');return false;" class="xi2"></a>
                    </span>
                <!--{/if}-->
                <br />
                ({lang have} <em class="xi1"><strong>$space[views]</strong></em> {lang visit_per_man})
            </p>
        </div>
    </div>
	<!--{if $space[profileprogress] != 100}-->
    <div class="bm">
        <div class="bm_c add-cl">
            <div class="pbg mbn">
                <div class="pbr" style="width: {if $space[profileprogress] < 2}2{else}$space[profileprogress]{/if}%;"></div>
            </div>
            <p class="pbg_info">{lang profile_completed} <b class="big">$space[profileprogress]%</b><br /><a href="home.php?mod=spacecp&ac=profile" class="xi2">{lang fix_profile}</a></p>
        </div>
    </div>
	<!--{/if}-->
<!--{else}-->
    <div class="bm bw0" >
        <div class="mi mar-pa-box">
            <div class="avatar mbn cl"><img width="180px" src="./passport/avatar.php?uid=$space[uid]&size=big"></a></div>
            <p class="left_profile">
                <a href="home.php?mod=space&username=$space[username]" class="o xi2"><strong>{lang view_my_space}</strong></a>
                <br />
                ({lang have} <em class="xi1"><strong>$space[views]</strong></em> {lang visit_per_man})
            </p>
        </div>
    </div>
    <div class="bm">
        <div class="bm_c add-cl">
            <div class="pbg mbn">
                <div class="pbr" style="width: {if $space[profileprogress] < 2}2{else}$space[profileprogress]{/if}%;"></div>
            </div>
             <p class="pbg_info">{lang profile_completed} <b class="big">$space[profileprogress]%</b>
        </div>
    </div>
<!--{/if}-->
<!--    END avatar    -->

<!--    TINH NANG   -->
<!--{eval getuserapp(1);}-->
<div class="box-usre-about">
	<div class="lable-tl">Tính năng của tôi</div>
    <div class="module-features woo-to-x">
        <ul class="clearfix">
            <!--{if $_G['uid']}-->
                <!--{eval $upgradecredit = $_G['uid'] && $_G['group']['grouptype'] == 'member' && $_G['group']['groupcreditslower'] != 999999999 ? $_G['group']['groupcreditslower'] - $_G['member']['credits'] : false;}-->
                <li class="clearfix"><a href="home.php?mod=spacecp&ac=credit&showcredit=1" id="extcreditmenu"{if !$_G[setting][bbclosed]} onmouseover="delayShow(this, showCreditmenu);" class="showmenu"{/if}><img src="{IMGDIR}/coins.png" width="14" height="14" alt="{lang credits}" /> {lang credits}: $_G[member][credits]</a></li>
            <!--{/if}-->
            <!--{if $_G['uid'] && getstatus($_G['member']['allowadmincp'], 1)}-->
            <li class="clearfix"><a href="admin.php" title="{lang admincp}" target="_blank"><img src="{IMGDIR}/admin.png" width="14" height="14" alt="{lang admincp}" /> {lang admincp}</a></li>
            <!--{/if}-->
            <!--{if ($_G['group']['allowmanagearticle'] || $_G['group']['allowpostarticle'] || $_G['group']['allowdiy'] || getstatus($_G['member']['allowadmincp'], 4) || getstatus($_G['member']['allowadmincp'], 6) || getstatus($_G['member']['allowadmincp'], 2) || getstatus($_G['member']['allowadmincp'], 3))}-->
            <li class="clearfix"><a href="portal.php?mod=portalcp" title="{lang portal_manage}"><!--{if $_G['setting']['portalstatus'] }--><img src="{IMGDIR}/portalcp.png" width="14" height="14" alt="{lang portal_manage}" /> {lang portal_manage}<!--{else}--><img src="{IMGDIR}/portalcp.png" width="14" height="14" alt="{lang portal_manage}" />{lang portal_block_manage}<!--{/if}--></a></li>
            <!--{/if}-->
            <!--{if $_G['uid'] && $_G['group']['radminid'] > 1}-->
            <li class="clearfix"><a href="forum.php?mod=modcp&fid=$_G[fid]" title="{lang forum_manager}"><img src="{IMGDIR}/forum_cp.png" width="14" height="14" alt="{lang forum_manager}" /> {lang forum_manager}</a></li>
            <!--{/if}-->
            <!--{loop $_G['setting']['spacenavs'] $nav}-->
                <!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}-->
                    <!--{if in_array($nav['code'], array('userpanelarea1', 'userpanelarea2'))}-->
                        <!--{if !empty($_G[my_panelapp]) && $_G['setting']['my_app_status']}-->
                            <!--{if $nav['code']=='userpanelarea1' && !empty($_G[my_panelapp][1])}-->
                                <!--{loop $_G[my_panelapp][1] $appid $app}-->
                                <li class="clearfix"><a href="userapp.php?mod=app&id=$app[appid]" title="$app[appname]"><img src="$app[icon]" name="$appid" alt="$app[appname]" />$app[appname]</a></li>
                                <!--{/loop}-->
                            <!--{elseif $nav['code']=='userpanelarea2' && !empty($_G[my_panelapp][2])}-->
                                <!--{loop $_G[my_panelapp][2] $appid $app}-->
                                <li class="clearfix"><a href="userapp.php?mod=app&id=$app[appid]" title="$app[appname]"><img src="$app[icon]" name="$appid" alt="$app[appname]" />$app[appname]</a></li>
                                <!--{/loop}-->
                            <!--{/if}-->
                        <!--{/if}-->
                    <!--{else}-->
                    $nav[code]
                    <!--{/if}-->
                <!--{/if}-->
            <!--{/loop}-->
        </ul>
    </div>
</div>
<!--    END tinh nang   -->

<!--	YEU THICH	-->
<div class="box-usre-about module-favorites">
	<div class="lable-tl clearfix">
        <span class="y">
            <a href="home.php?mod=space&do=favorite&view=me">Tất cả</a>
        </span>
        Yêu thích    
    </div>
    <div class="module-features woo-to-x lv-item">
        <ul>
            <li class="news-i1"><a href='home.php?mod=space&amp;do=favorite&amp;type=thread'>Chủ đề</a></li>
            <li class="news-i2"><a href="home.php?mod=space&amp;do=favorite&amp;type=forum">Diễn đàn</a>
            	<ul>
                	<li><a href=''>- Tin giật gân, Gây sốc, Scandal</a></li>
                	<li><a href=''>- Thời sự nóng hổi</a></li>
                	<li><a href=''>- Giải trí</a></li>
                	<li><a href=''>- Mua bán - Rao vặt</a></li>
                </ul>
            </li>
            <li class="news-i3"><a href='home.php?mod=space&amp;do=favorite&amp;type=group'>Bang hội</a></li>
            <li class="news-i4"><a href='home.php?mod=space&amp;do=favorite&amp;type=blog'>Blog</a></li>
            <li class="news-i5"><a href='home.php?mod=space&amp;do=favorite&amp;type=album'>Album</a></li>
            <li class="news-i6"><a href='home.php?mod=space&amp;do=favorite&amp;type=article'>Tác phâm</a></li>
        </ul>
    </div>
</div>
<!--	END yeu thich	-->

<!--	BAN BE & KHACH	-->
<!--{if $_G[uid] }-->
    <!--{if $olfriendlist}-->
        <div class="bm block">
            <div class="blocktitle title">
            	<span>{lang my_friends}</span>
                <span class="y xw0"><a href="home.php?mod=space&username=$space[username]&do=friend">{lang all}</a></span>
            </div>
            <div class="bm_l  box-list-user">
                <ul class="inlinelist avatar-in clearfix">
                    <!--{loop $olfriendlist $key $value}-->
                    <li class="clearfix">
                        <a href="home.php?mod=space&uid=$value[uid]" title="{if $ols[$value[uid]]}{lang online}{/if}" class="avt_l" c="1">
                            <!--{if $ols[$value[uid]]}--><em class="gol"></em><!--{/if}-->
                            <!--{avatar($value[uid],small)}-->
                        </a>
                        <strong><a href="home.php?mod=space&uid=$value[uid]" title="$value[username]">$value[username]</a></strong>
                        <br />
                        <span><!--{if $value[lastactivity]}--><!--{date($value[lastactivity], 'u', 9999, $_G[setting][dateformat])}--><!--{else}-->{lang hot}($value[num])<!--{/if}--></span>
                    </li>
                    <!--{/loop}-->
                </ul>
            </div>
        </div>
        <!--{/if}-->
        <!--{if $visitorlist}-->
        <div class="bm block">
            <div class="blocktitle title">
            	<span>{lang recent_visit}</span>
                <span class="y xw0">
                    <a href="home.php?mod=space&username=$space[username]&do=friend&view=visitor">{lang all}</a>
                </span>
            </div>
            <div class="bm_l">
                <ul class="inlinelist clearfix">
                    <!--{loop $visitorlist $key $value}-->
                    <li class="clearfix">
                        <!--{if $value[vusername] == ''}-->
                            <div class="avt"><img src="{STATICURL}image/magic/hidden.gif" alt="{lang anonymity}" /></div>
                            <p>{lang anonymity}</p>
                            <span><!--{date($value[dateline], 'u', 9999, $_G[setting][dateformat])}--></span>
                        <!--{else}-->
                            <a href="home.php?mod=space&uid=$value[vuid]" title="{if $ols[$value[vuid]]}{lang online}{/if}" class="avt_l" c="1">
                                <!--{if $ols[$value[vuid]]}--><em class="gol"></em><!--{/if}-->
                                <!--{avatar($value[vuid],small)}-->
                            </a>
                            <strong ><a href="home.php?mod=space&uid=$value[vuid]" title="$value[username]">$value[vusername]</a></strong>
                            <br />
                            <span><!--{date($value[dateline], 'u', 9999, $_G[setting][dateformat])}--></span>
                        <!--{/if}-->
                    </li>
                    <!--{/loop}-->
                </ul>
            </div>
        </div>
        <!--{/if}-->
<!--{/if}-->

<!--	END ban be & khach	-->

    